import 'package:chatroom_flutter_app/ui/page/home_page.dart';
import 'package:flutter/material.dart';

class AppNavigator{
  static back(BuildContext context){
    Navigator.pop(context);
  }

  static gotoHomePage(BuildContext context){
    Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context) {
      return const HomePage();
    }), (route) => false);
  }

}